﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using 水牛管理系统.UI;
using 水牛管理系统.Utils;
using System.Threading;

namespace 水牛管理系统 {
    public partial class Form1 : Form {
        public Form1() {
            InitializeComponent();
        }

        public void mainForm() {
            Application.Run(new MainForm());
        }

        private void skinButton_Login_Click(object sender, EventArgs e) {
            if (textBox_userAccount.Text == "admin" && textBox_userPassword.Text == "123456") {
                Thread newForm = new Thread(new ThreadStart(mainForm));
                newForm.Start();
                this.Close();
            }
        }

        private void button1_Click(object sender, EventArgs e) {
            this.Close();
        }
    }
}
